<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>可信电子凭证查询平台</title>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        :root {
            --primary-color: #1a73e8;
            --primary-dark: #0d47a1;
            --secondary-color: #f8f9fa;
            --text-color: #202124;
            --light-gray: #f1f3f4;
            --border-color: #dadce0;
            --success-color: #34a853;
            --warning-color: #f9ab00;
            --danger-color: #ea4335;
        }
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
        }
        
        body {
            background-color: #f8f9fa;
            color: var(--text-color);
            line-height: 1.6;
        }
        
        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }
        
        /* 头部样式 */
        header {
            background-color: white;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
            position: sticky;
            top: 0;
            z-index: 100;
        }
        
        .header-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 15px 0;
        }
        
        .logo {
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .logo i {
            font-size: 24px;
            color: var(--primary-color);
        }
        
        .logo h1 {
            font-size: 20px;
            font-weight: 600;
        }
        
        nav ul {
            display: flex;
            list-style: none;
            gap: 25px;
        }
        
        nav a {
            text-decoration: none;
            color: var(--text-color);
            font-weight: 500;
            padding: 8px 12px;
            border-radius: 4px;
            transition: all 0.3s;
        }
        
        nav a:hover, nav a.active {
            background-color: var(--light-gray);
            color: var(--primary-color);
        }
        
        .user-info {
            display: flex;
            align-items: center;
            gap: 15px;
        }
        
        .avatar {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background-color: var(--primary-color);
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
        }
        
        /* 主要内容区域 */
        main {
            padding: 30px 0;
            min-height: calc(100vh - 140px);
        }
        
        .page-header {
            margin-bottom: 30px;
        }
        
        .page-header h2 {
            font-size: 24px;
            margin-bottom: 10px;
        }
        
        .page-header p {
            color: #5f6368;
        }
        
        /* 卡片样式 */
        .card {
            background-color: white;
            border-radius: 8px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
            padding: 24px;
            margin-bottom: 24px;
        }
        
        .card-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            padding-bottom: 15px;
            border-bottom: 1px solid var(--border-color);
        }
        
        .card-title {
            font-size: 18px;
            font-weight: 600;
        }
        
        /* 按钮样式 */
        .btn {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 10px 20px;
            border-radius: 4px;
            border: none;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s;
            text-decoration: none;
        }
        
        .btn-primary {
            background-color: var(--primary-color);
            color: white;
        }
        
        .btn-primary:hover {
            background-color: var(--primary-dark);
        }
        
        .btn-outline {
            background-color: transparent;
            border: 1px solid var(--border-color);
            color: var(--text-color);
        }
        
        .btn-outline:hover {
            background-color: var(--light-gray);
        }
        
        .btn-success {
            background-color: var(--success-color);
            color: white;
        }
        
        .btn-danger {
            background-color: var(--danger-color);
            color: white;
        }
        
        /* 表单样式 */
        .form-group {
            margin-bottom: 20px;
        }
        
        .form-label {
            display: block;
            margin-bottom: 8px;
            font-weight: 500;
        }
        
        .form-control {
            width: 100%;
            padding: 12px 15px;
            border: 1px solid var(--border-color);
            border-radius: 4px;
            font-size: 16px;
            transition: border 0.3s;
        }
        
        .form-control:focus {
            outline: none;
            border-color: var(--primary-color);
        }
        
        /* 网格布局 */
        .row {
            display: flex;
            flex-wrap: wrap;
            margin: 0 -12px;
        }
        
        .col {
            flex: 1;
            padding: 0 12px;
        }
        
        .col-2 {
            flex: 0 0 50%;
            padding: 0 12px;
        }
        
        .col-3 {
            flex: 0 0 33.333%;
            padding: 0 12px;
        }
        
        /* 统计卡片 */
        .stats-container {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            gap: 20px;
            margin-bottom: 30px;
        }
        
        .stat-card {
            background-color: white;
            border-radius: 8px;
            padding: 20px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
        }
        
        .stat-value {
            font-size: 28px;
            font-weight: 600;
            margin-bottom: 5px;
        }
        
        .stat-label {
            color: #5f6368;
            font-size: 14px;
        }
        
        /* 表格样式 */
        .table {
            width: 100%;
            border-collapse: collapse;
        }
        
        .table th, .table td {
            padding: 12px 15px;
            text-align: left;
            border-bottom: 1px solid var(--border-color);
        }
        
        .table th {
            font-weight: 600;
            color: #5f6368;
            background-color: var(--light-gray);
        }
        
        .table tr:hover {
            background-color: #f8f9fa;
        }
        
        .status-badge {
            display: inline-block;
            padding: 4px 10px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: 500;
        }
        
        .status-valid {
            background-color: #e6f4ea;
            color: var(--success-color);
        }
        
        .status-invalid {
            background-color: #fce8e6;
            color: var(--danger-color);
        }
        
        /* 页脚样式 */
        footer {
            background-color: white;
            border-top: 1px solid var(--border-color);
            padding: 20px 0;
            text-align: center;
            color: #5f6368;
            font-size: 14px;
        }
        
        /* 验证码输入区域 */
        .verification-area {
            display: flex;
            gap: 15px;
            align-items: flex-end;
        }
        
        .verification-input {
            flex: 1;
        }
        
        /* 响应式设计 */
        @media (max-width: 768px) {
            .col, .col-2, .col-3 {
                flex: 0 0 100%;
                margin-bottom: 20px;
            }
            
            nav ul {
                gap: 10px;
            }
            
            .header-content {
                flex-direction: column;
                gap: 15px;
            }
            
            .stats-container {
                grid-template-columns: 1fr;
            }
        }
    </style>
</head>
<body>
    <header>
        <div class="container">
            <div class="header-content">
                <div class="logo">
                    <i class="fas fa-shield-alt"></i>
                    <h1>可信电子凭证查询平台</h1>
                </div>
                
                <nav>
                    <ul>
                        <li><a href="index.html" class="active"><i class="fas fa-home"></i> 首页</a></li>
                        <li><a href="single-query.html"><i class="fas fa-search"></i> 单凭证查询</a></li>
                        <li><a href="batch-query.html"><i class="fas fa-tasks"></i> 批量查询</a></li>
                        <li><a href="admin.html"><i class="fas fa-cog"></i> 系统管理</a></li>
                    </ul>
                </nav>
                
                <div class="user-info">
                    <div class="avatar">张</div>
                    <span>张三 (备案部门用户)</span>
                </div>
            </div>
        </div>
    </header>
    
    <main>
        <div class="container">
            <div class="page-header">
                <h2>系统概览</h2>
                <p>欢迎使用可信电子凭证查询平台，您可以进行单凭证查验或批量查验操作</p>
            </div>
            
            <div class="stats-container">
                <div class="stat-card">
                    <div class="stat-value">1,254</div>
                    <div class="stat-label">今日查询次数</div>
                </div>
                <div class="stat-card">
                    <div class="stat-value">98.7%</div>
                    <div class="stat-label">查询成功率</div>
                </div>
                <div class="stat-card">
                    <div class="stat-value">23</div>
                    <div class="stat-label">待处理批量任务</div>
                </div>
                <div class="stat-card">
                    <div class="stat-value">99.94%</div>
                    <div class="stat-label">系统可用性</div>
                </div>
            </div>
            
            <div class="row">
                <div class="col-2">
                    <div class="card">
                        <div class="card-header">
                            <h3 class="card-title">快速查询</h3>
                        </div>
                        <p>输入凭证唯一标识进行单凭证查验</p>
                        <div class="form-group">
                            <label class="form-label">凭证唯一标识</label>
                            <input type="text" class="form-control" placeholder="请输入凭证唯一标识">
                        </div>
                        <div class="form-group">
                            <label class="form-label">用户验证码</label>
                            <input type="text" class="form-control" placeholder="请输入验证码">
                        </div>
                        <div class="form-group">
                            <label class="form-label">短信验证码</label>
                            <div class="verification-area">
                                <div class="verification-input">
                                    <input type="text" class="form-control" placeholder="请输入短信验证码">
                                </div>
                                <button class="btn btn-outline">发送验证码</button>
                            </div>
                        </div>
                        <button class="btn btn-primary"><i class="fas fa-search"></i> 立即查询</button>
                    </div>
                </div>
                
                <div class="col-2">
                    <div class="card">
                        <div class="card-header">
                            <h3 class="card-title">批量查询</h3>
                        </div>
                        <p>上传凭证列表或按条件筛选进行批量查验</p>
                        <div class="form-group">
                            <label class="form-label">选择查询方式</label>
                            <select class="form-control">
                                <option>上传凭证列表</option>
                                <option>按学校代码筛选</option>
                                <option>按凭证类型筛选</option>
                                <option>按签发批次筛选</option>
                            </select>
                        </div>
                        <div class="form-group">
                            <label class="form-label">上传文件</label>
                            <input type="file" class="form-control">
                            <small>支持Excel、CSV格式，单次最多处理1000条记录</small>
                        </div>
                        <button class="btn btn-primary"><i class="fas fa-upload"></i> 提交批量任务</button>
                    </div>
                    
                    <div class="card">
                        <div class="card-header">
                            <h3 class="card-title">最近查询记录</h3>
                            <a href="query-results.html" class="btn btn-outline">查看全部</a>
                        </div>
                        <table class="table">
                            <thead>
                                <tr>
                                    <th>查询时间</th>
                                    <th>凭证标识</th>
                                    <th>状态</th>
                                </tr>
                            </thead>
                            <tbody>
                                <tr>
                                    <td>2023-10-25 14:23</td>
                                    <td>CRED20231025001</td>
                                    <td><span class="status-badge status-valid">有效</span></td>
                                </tr>
                                <tr>
                                    <td>2023-10-25 13:45</td>
                                    <td>CRED20231024005</td>
                                    <td><span class="status-badge status-invalid">无效</span></td>
                                </tr>
                                <tr>
                                    <td>2023-10-25 11:12</td>
                                    <td>CRED20231023012</td>
                                    <td><span class="status-badge status-valid">有效</span></td>
                                </tr>
                                <tr>
                                    <td>2023-10-25 09:34</td>
                                    <td>CRED20231022008</td>
                                    <td><span class="status-badge status-valid">有效</span></td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
        </div>
    </main>
    
    <footer>
        <div class="container">
            <p>© 2023 可信电子凭证查询平台 | 安全合规 | 高效查验</p>
        </div>
    </footer>

    <script>
        // 简单的交互逻辑
        document.addEventListener('DOMContentLoaded', function() {
            // 模拟发送验证码功能
            const sendCodeBtn = document.querySelector('.verification-area .btn');
            if (sendCodeBtn) {
                sendCodeBtn.addEventListener('click', function() {
                    const originalText = this.textContent;
                    this.textContent = '发送中...';
                    this.disabled = true;
                    
                    setTimeout(() => {
                        this.textContent = '已发送';
                        setTimeout(() => {
                            this.textContent = originalText;
                            this.disabled = false;
                        }, 3000);
                    }, 1000);
                });
            }
            
            // 导航菜单激活状态
            const currentPage = window.location.pathname.split('/').pop() || 'index.html';
            const navLinks = document.querySelectorAll('nav a');
            
            navLinks.forEach(link => {
                const linkHref = link.getAttribute('href');
                if (currentPage === linkHref) {
                    link.classList.add('active');
                } else {
                    link.classList.remove('active');
                }
            });
        });
    </script>
</body>
</html>